import request from '@/utils/request'
export const productCommentList = function(params){
  return request({
    url: '/product_comment/list',
    method: 'get',
    params: params,
  })
}

export const productCommentDel = function(params){
  return request({
    url: '/product_comment/del',
    method: 'post',
    data: params,
  })
}
export const productCommentExport = function(params){
  return request({
    url: '/product_comment/export_url',
    method: 'get',
    params: params,
  })
}

export const productCommentSort = function(params){
  return request({
    url: '/product_comment/set_sort',
    method: 'post',
    data: params,
  })
}
export const productCommentAdd = function(params){
  return request({
    url: '/product_comment/add',
    method: 'post',
    data: params,
  })
}



export const productAttrList = function(params){
  return request({
    url: '/product_basic/product_attr',
    method: 'get',
    params: params,
  })
}

export const productCommentGet = function(params){
  return request({
    url: '/product_comment/edit',
    method: 'get',
    params: params,
  })
}

export const productCommentPost = function(params){
  return request({
    url: '/product_comment/edit',
    method: 'post',
    data: params,
  })
}